/*
 * Driver LCD Hitachi 44780
 * lcd.h
 
 * Created on: 13/04/2011
 * Author: Leandro Perez Guatibonza
 */

/*
 * Include Section
 */
#include "lcd.h"

/*
 * Function LCD Section
 */

// Initialize LCD
void lcdInit()
{
	//LCD_E = 0;
	
	delayMilliseconds(200);
}

// Send command or data to LCD
void lcdSend(unsigned char type, unsigned char dataLCD)
{
	//LCD_RS = 0;
	//LCD_E = 1;
	
	/*LCD_D7 = control.D7;
	LCD_D6 = control.D6;
	LCD_D5 = control.D5;
	LCD_D4 = control.D4;

	LCD_D7 = control.D3;
	LCD_D6 = control.D2;
	LCD_D5 = control.D1;
	LCD_D4 = control.D0;*/
	
	asm(nop);
	asm(nop);
	
	delayMilliseconds(50);
}

// Clean LCD screen
void lcdClear()
{
	
}

// Sets the LCD cursor Home position
void lcdHome()
{
	
}

// Set the cursor position of LCD
void lcdSetCursor(unsigned char column, unsigned char row)
{
	
}

// Set the cursor blink in the LCD
void lcdBlinkCursor(unsigned char booleanState)
{
	
}

// Set whether the cursor on the LCD is visible
void lcdVisibleCursor(unsigned char booleanState)
{
	
}

// Set if the LCD is turned on or turn off
void lcdStateDisplay(unsigned char booleanState)
{
	
}
 
// Set the scroll direction of the LCD
void lcdDirectionScroll(unsigned char directionScroll)
{
	
}

// Set the autoscroll of the LCD
void lcdAutoScroll(unsigned char booleanState)
{
	
}

// Create a character on the LCD DDRAM
void lcdCreateCharacter(unsigned char dirDDRAMLCD, unsigned char *patternPtr)
{
	
}

// Prints a variable in the LCD, in the format provided
void lcdPrint(unsigned char variable, unsigned char format)
{
	
}

// Send a message to the LCD
void lcdSendMessage(unsigned char column, unsigned char row, const unsigned char *messagePtr)
{
	unsigned char x = 0;
	while(messagePtr != 0){
		//lcdSend(*messagePtr, x);
	}
}
